package com.ktgj.flight.domain.InterfaceEntity;

/**
 * 内部接口协议实体
 */
public class MoCtrip {
    /*public MoCtrip()
    { }
    public MoCtrip(String icode, String token)
    {
        this.ICode = icode;
        this.Token = token;
        this.UUID = Guid.NewGuid().ToString("N");
        this.Version = "1.0";
    }
    /// <summary>
    /// 分销商ID 即（AllianceId)
    /// </summary>
    public int AID (int AID){
        AID = 26967;
        return AID;
    }
    /// <summary>
    /// 站点ID
    /// </summary>
    public int SID() { get { return 463403; } }
    /// <summary>
    /// 每个接口对应的icode值（用来区分接口）
    /// </summary>
    public String ICode { get; set; }
    /// <summary>
    /// 每次请求的唯一值
    /// </summary>
    public String UUID { get; set; }
    /// <summary>
    /// 密匙（改密匙10分钟一变。）
    /// </summary>
    public String Token { get; set; }
    /// <summary>
    /// 版本号
    /// </summary>
    public String Version { get; set; }
    /// <summary>
    /// 请求地址 所有接口，请求地址固定。通过ICODE字段来控制请求的具体接口。请求前需要先获取Token值
    /// </summary>
    public String ServerUrl
    {
        get
        {
            return String.Format("http://openservice.ctrip.com/openservice/serviceproxy.ashx?aid={0}&sid={1}&icode={2}&uuid={3}&token={4}&mode=1&format=json", this.AID, this.SID, this.ICode, this.UUID, this.Token);
        }
    }*/
}
